package com.wk.service;

import com.wk.dao.DetailDao;
import com.wk.vo.Book;
import com.wk.vo.Chapters;
import com.wk.vo.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Service
public class DetailService {
    @Autowired(required = false)
    private DetailDao detailDao;

    public Book getBookDetail(int bookId){
        Book book = new Book();
        try {
            book = detailDao.getBookDetail(bookId);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return book;
    }
}
